From 51d4efd8d234179173ced6de0223136d87bad375 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 4 Dec 2008 22:15:56 +0100 Subject: [PATCH] gdk_pixmap_draw_pixbuf - gc may be NULL --- gdk/gdkpixmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdk/gdkpixmap.c b/gdk/gdkpixmap.c index cb99cb76ab..be1d3a2d41 100644 --- a/gdk/gdkpixmap.c +++ b/gdk/gdkpixmap.c @@ -478,7 +478,8 @@ gdk_pixmap_draw_pixbuf (GdkDrawable *drawable, { GdkPixmapObject *private = (GdkPixmapObject *)drawable; - _gdk_gc_remove_drawable_clip (gc); + if (gc) + _gdk_gc_remove_drawable_clip (gc); gdk_draw_pixbuf (private->impl, gc, pixbuf, src_x, src_y, dest_x, dest_y, width, height, dither, x_dither, y_dither); -- 2.30.2